<template>
  <div id="index">
    <video
      src="../../public/Blue Joy.mp4"
      autoplay
      loop
    ></video>
  </div>
</template>

<script>
export default {
  data() {
    return {
      imgarr: [
        "http://pic.netbian.com/uploads/allimg/200528/120844-1590638924b04f.jpg"
      ]
    };
  },

  methods: {}
};
</script>



<style lang="scss">
#index {
  max-height: 100vh;
  &::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 110vh;
    // background-color: violet;
    background-image: url("../../public/index.jpg");
    background-repeat: no-repeat;
    background-position: left;
    // opacity: 0.6;
    top: 80px;
    left: 0px;
    z-index: -20;
  }
  video {
    position: absolute;
    top: 80%;
    left: 6%;
    // display: block;
    width: 30%;
    height: auto;
    border-radius: 20px;
    opacity: 0.6;
    &:hover {
      opacity: 1;
    }
  }
}
</style>